﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain;

namespace Service.Interface
{
    public interface IAreaService : IService<Area>
    {
        /// <summary>
        /// 更新分区是否扔进垃圾箱
        /// </summary>
        /// <param name="areaID">分区ID</param>
        /// <param name="delete">是否删除</param>
        void UpdateAreaMarkDelete(object areaID, bool delete);

        /// <summary>
        /// 更新分区是否共享
        /// </summary>
        /// <param name="areaID">分区ID</param>
        /// <param name="share">是否共享</param>
        void UpdateAreaShare(object areaID, bool share);

        /// <summary>
        /// 获取分区集合
        /// </summary>
        /// <param name="userID">用户ID</param>
        /// <param name="delete">是否删除</param>
        /// <returns></returns>
        IList<Area> LoadAllArea(object userID, bool delete);

        /// <summary>
        /// 获取共享分区集合
        /// </summary>
        /// <returns></returns>
        IList<Area> LoadAllShareArea();
    }
}
